package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import com.baseweb.webadmin.core.model.pojo.ByUserExample;
import com.baseweb.webadmin.core.model.pojo.ByUserRecommend;
import com.baseweb.webadmin.core.model.pojo.User;
import org.joda.time.DateTime;

public class ByUserRecommendBvo extends ByUserRecommend{

    private User user;
    private UserInfoBvo recommendUser;
    private ByUserExample example;
    private String perD;

    public static ByUserRecommendBvo copyFrom(ByUserRecommend recommend, User user, UserInfoBvo recommendUser, ByUserExample example) {
        ByUserRecommendBvo bvo = new ByUserRecommendBvo();
        bvo.setId(recommend.getId());
        bvo.setUserId(recommend.getUserId());
        bvo.setUser(user);
        bvo.setRecommendId(recommend.getRecommendId());
        bvo.setRecommendUser(recommendUser);
        bvo.setExampleId(recommend.getRecommendId());
        bvo.setSort(recommend.getSort());
        bvo.setStatus(recommend.getStatus());
        bvo.setCreateTime(recommend.getCreateTime());
        bvo.setUpdateTime(recommend.getUpdateTime());
        return bvo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserInfoBvo getRecommendUser() {
        return recommendUser;
    }

    public void setRecommendUser(UserInfoBvo recommendUser) {
        this.recommendUser = recommendUser;
    }

    public ByUserExample getExample() {
        return example;
    }

    public void setExample(ByUserExample example) {
        this.example = example;
    }

    public String getPerD() {
        return perD;
    }

    public void setPerD(String perD) {
        this.perD = perD;
    }
}
